home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rwvector.lha / RWVector2.1 / src / testcos.out < prev    next >
Text File  |  1989-08-18  |  1KB  |  44 lines

  1. Testing DoubleCosineServer (Double Precision Cosine Server)
  2.  
  3. **************************************
  4. a2cos (one half of a two period cosine wave, plus 1.0):
  5.  2.00000  1.86603  1.50000  1.00000  0.50000 
  6.  0.13397  0.00000  0.13397  0.50000  1.00000 
  7.  1.50000  1.86603  2.00000 
  8. a2sin (one half of a two period sine wave):
  9.  0.50000  0.86603  1.00000  0.86603  0.50000 
  10.  0.00000 -0.50000 -0.86603 -1.00000 -0.86603 
  11. -0.50000 
  12. **************************************
  13. Checking cosine transform.
  14.  
  15. Transform of a2cos:
  16.  1.00000  0.00000  0.50000  0.00000  0.00000 
  17.  0.00000  0.00000  0.00000  0.00000  0.00000 
  18.  0.00000  0.00000  0.00000 
  19.  
  20. Checking Parseval's theorem for cosine transform.
  21. Original variance: 0.5
  22. Spectral variance: 0.5
  23.  
  24. Checking Nyquist for cosine transform.
  25. Original sequence:
  26.  1.00000 -1.00000  1.00000 -1.00000  1.00000 
  27. -1.00000  1.00000 -1.00000  1.00000 -1.00000 
  28.  1.00000 -1.00000  1.00000 
  29. Its transform:
  30.  0.00000  0.00000  0.00000  0.00000  0.00000 
  31.  0.00000  0.00000  0.00000  0.00000  0.00000 
  32.  0.00000  0.00000  1.00000 
  33. **************************************
  34. Checking sine transform.
  35.  
  36. Transform of a2sin:
  37.  0.00000  0.50000  0.00000  0.00000  0.00000 
  38.  0.00000  0.00000  0.00000  0.00000  0.00000 
  39.  0.00000 
  40.  
  41. Checking Parseval's theorem for sine transform.
  42. Original variance: 0.5
  43. Spectral variance: 0.5
  44.